feat: add mcp server picker header slot - #267
Conversation
WalkthroughA new Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
packages/components/src/mcp-server-picker/index.vue (1)
303-312: Headerheader-actionsslot integration looks goodThe slot is added in a non-breaking way before existing header actions, preserving current UX while enabling extension. Layout inside the flex container also remains predictable for consumers.
If you expect complex content in this slot later, consider documenting that it renders alongside (not instead of) the built-in “自定义添加”按钮和关闭图标, so consumers know to combine it with
showCustomAddButtonwhen they want full control.docs/src/components/mcp-server-picker.md (1)
83-89: Clarify thatheader-actionsaugments, not replaces, header actionsThe table correctly documents the slot, but readers might assume using
header-actionsreplaces all right-side actions. In the component, this slot is rendered before the built-in “自定义添加”按钮和关闭图标.Consider tweaking the description, e.g. “头部右侧额外操作区插槽(与自带按钮并排显示,可配合
showCustomAddButton使用)”, to make the relationship with默认按钮更直观。
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
docs/src/components/mcp-server-picker.md(1 hunks)packages/components/src/mcp-server-picker/index.vue(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: e2e-tests
🧹 Preview Cleaned UpThe preview deployment has been removed. |
📦 Package Previewpnpm add https://pkg.pr.new/opentiny/tiny-robot/@opentiny/tiny-robot@09e32ce pnpm add https://pkg.pr.new/opentiny/tiny-robot/@opentiny/tiny-robot-kit@09e32ce pnpm add https://pkg.pr.new/opentiny/tiny-robot/@opentiny/tiny-robot-svgs@09e32ce commit: 09e32ce |

增加头部操作插槽
Summary by CodeRabbit
New Features
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.